﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///AOJProblem 的摘要说明
/// </summary>
public class AOJProblem:Topic
{
    public int probID;
    public AOJProblem():base()
    {

    }

	public AOJProblem(int tid,int probID):base(tid)
	{
        this.probID = probID;
	}

    public AOJProblem(threads t):base(t)
    {
        this.probID = (int)t.ProbID;
    }

    public void Publishh()
    {
        try
        {
            this.tid = SaveData.NewTopic(this,probID);
        }
        catch (System.Exception ex)
        {
            //Error
        }
    }
}